package com.chenglu.android.order.mvp.model;



import com.chenglu.android.common.net.RetrofitClientCL;
import com.chenglu.android.mine.bean.CommonDataBean;
import com.chenglu.android.order.bean.OrderInfoBean;
import com.chenglu.android.order.mvp.contract.OrderContract;
import com.chenglu.android.orderinfo.bean.OrderDetailBean;
import com.chenglu.android.orderinfo.bean.QrcodeBean;
import com.chenglu.android.payment.bean.CouponListBean;
import com.chenglu.android.payment.bean.PayOrderBean;
import com.chenglu.android.payment.bean.TenantIdPayMethod;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.RequestBody;

/**
 * @author: lyj
 * @Created by Copyright 2023/10/17 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public class OrderModel implements OrderContract.OrderModel {


    @Override
    public Observable<CouponListBean> getCouponList(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getCouponList(token, requestBody);
    }

    @Override
    public Observable<TenantIdPayMethod> getenantIdPayMethod(String token ,String payClient, String tenantId) {
        return RetrofitClientCL.getInstance().getApi().getTenantIdPayMethod(token, payClient, tenantId);
    }

    @Override
    public Observable<PayOrderBean> getPayOrder(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getPayOrder(token, requestBody);
    }

    @Override
    public Observable<OrderInfoBean> getOrderList(String token, Map<String, String> map) {
        return RetrofitClientCL.getInstance().getApi().getOrderList(token, map);
    }

    @Override
    public Observable<CommonDataBean> getOrderCancel(String token, String id) {
        return RetrofitClientCL.getInstance().getApi().getOrderCancel(token, id);
    }

    @Override
    public Observable<CommonDataBean> getOrderRemove(String token, String ids) {
        return RetrofitClientCL.getInstance().getApi().getOrderRemove(token, ids);
    }

    @Override
    public Observable<CommonDataBean> getOrderReceiving(String token, String id) {
        return RetrofitClientCL.getInstance().getApi().getOrderReceiving(token, id);
    }

    @Override
    public Observable<OrderDetailBean> getOrderInfo(String token, String id) {
        return RetrofitClientCL.getInstance().getApi().getOrderInfo(token, id);
    }

    @Override
    public Observable<OrderDetailBean> getOrderBreedInfo(String token, String id) {
        return RetrofitClientCL.getInstance().getApi().getBreedInfo(token, id);
    }

    @Override
    public Observable<OrderDetailBean> getRestautantInfo(String token, String id) {
        return RetrofitClientCL.getInstance().getApi().getRestautantInfo(token, id);
    }

    @Override
    public Observable<OrderDetailBean> getBeautyInfo(String token, String id) {
        return RetrofitClientCL.getInstance().getApi().getBeautyInfo(token, id);
    }

    @Override
    public Observable<OrderDetailBean> getEducationInfo(String token, String id) {
        return RetrofitClientCL.getInstance().getApi().getEducationInfo(token, id);
    }

    @Override
    public Observable<OrderDetailBean> getMinimartInfo(String token, String id) {
        return RetrofitClientCL.getInstance().getApi().getMinimartInfo(token, id);
    }

    @Override
    public Observable<OrderDetailBean> getPharmaceuticalsInfo(String token, String id) {
        return RetrofitClientCL.getInstance().getApi().getPharmaceuticalsInfo(token, id);
    }

    @Override
    public Observable<QrcodeBean> getBeautyQrcode(String token, String id) {
        return RetrofitClientCL.getInstance().getApi().getBeautynQrcode(token, id);
    }

    @Override
    public Observable<QrcodeBean> getEducationQrcode(String token, String id) {
        return RetrofitClientCL.getInstance().getApi().getEducationQrcode(token, id);
    }
}
